/*==============================================================================
**                                 SEE4SYS
**                      Proprietary - Copyright (C) 2012
**------------------------------------------------------------------------------
**
** Stakeholder visibility: <PUBLIC>
** 
** Summary: See below.
** ____________________________________________________________________________
** ____________________________________________________________________________
** 
**= History ====================================================================
** Phuong.PHAM 2012-02-10
** - First creation & implementation
** -----------------------------------------------------------------------------
==============================================================================*/
var DEBUG = true;
var CLIENT_MODE = false;
$(function(){
    enhance({
        loadScripts : [ 
            'js/personal.constants.js',
            'js/personal.utils.js',
            getCommunicationScript(),
            getControllerScript(),
            'js/personal.main.controller.js' 
        ]
    }); 
});

/**
 * Get communication script depends on CLIENT_MODE.
 * 
 * @returns {String}
 */
function getCommunicationScript() {
	if(typeof CLIENT_MODE == 'boolean' && CLIENT_MODE) {
		return 'js/personal.main.communication.client.js';
	}
	return 'js/personal.main.communication.server.js';
}

/**
 * Get controller script for page
 * @returns {String}
 */
function getControllerScript() {
    return 'js/personal.main.index.controller.js';
}
